<template>
<!-- 食物 -->
  <div class="GameFood" :style="{left:StyleObj.left+'px',top:StyleObj.top+'px'}"></div>
</template>

<script setup lang="ts">
import {StyleObj} from '../hoos/UseFood'
</script>

<style>
.GameFood{
  width: 10px;
  height: 10px;
  position: absolute;
  top: 150px;
  left: 100px;
  background: url(../assets/food.png);
}

</style>
